package org.example;

import org.example.util.BtcUtils;

import javax.websocket.DeploymentException;
import java.io.IOException;
import java.net.URISyntaxException;

public class AppTest {
    public static void main(String[] args) throws InterruptedException, DeploymentException, IOException, URISyntaxException {
        BtcUtils.BtcClient btcClient = BtcUtils.getBtcClient();
        for (int i = 0; i < 60; i++) {
            Thread.sleep(1000);
            System.out.println(i + "s pasted btc price: " + btcClient.getPriceInUSD());
        }
        BtcUtils.closeBtcClient();
    }
}
